package com.yanqu.road.server.cmd.activity.dafuweng;

import com.yanqu.road.pb.monopoly.MonopolyProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.dafuweng.DaFuWengMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_DA_FU_WENG_GET_COLLECT_EVENT_MEMBER_LIST, desc = "商会情报事情信息商会成员数据列表")
public class GetCollectEventMemberListCmd extends AbstractCommand {
    private String unionUid;
    private int itemId;

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        MonopolyProto.CollectMemberReqMsg msg = MonopolyProto.CollectMemberReqMsg.parseFrom(packet.getBytes());
        unionUid = msg.getUnionUid();
        itemId = msg.getItemId();
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        DaFuWengMgr.getCollectEventMemberList(player, unionUid, itemId);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
